home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
utility
/
horst_2.zip
/
KPUSH.DOC
< prev
next >
Wrap
Text File
|
1995-12-18
|
2KB
|
72 lines
------------------------------------------------------------------------
KPUSH Keyboard buffer utility Ver 1.5 (c) 1995 Horst Schaeffer
------------------------------------------------------------------------
KPUSH.COM stuffs keys into the keyboard buffer. This can be used to
pass a number of keystrokes to the following program in a batch file.
Examples:
KPUSH "password" CR
KPUSH /59 ESC "W" 17
(F1) (Ctrl-Q)
Keys may be specified as folows:
"A" ASCII character
"string" ASCII string
17 decimal ASCII code (17=Ctrl-Q)
/59 non-ASCII keys with a slash (/59=F1)
43/78 ASCII with SCAN code (see test mode)
CR (= 13/28)
ESC (= 27/1)
KPUSH has a built-in test mode to report the codes of any key you press.
For this mode run KPUSH without any parameters.
Some programs may handle ASCII keys differently depending on the SCAN
code that is always supplied by BIOS. For example:
43/27 is the white "+" key
43/78 is the grey "+" key (in the numeric key pad)
Scan code will be ZERO if not given (for characters, strings).
OPTIONS (these options must be specified before any keys)
/F FLUSH buffer
the keyboard buffer will be flushed before the given keys are
stored. Examples:
KPUSH /F "XY",CR
KPUSH /F (flush only)
/E EXTEND buffer
extended buffer for 127 keystrokes is supplied at $200 in the
BIOS segment. This area is reserved, but apparently not used by DOS
or BIOS. No guaranty. Example:
KPUSH /E "lots of keys to stuff into buffer",CR
/R RETURN to normal buffer size (15 keystrokes)
KPUSH /R
/? help info
Errorlevels: 0 ok
1 invalid specifications
2 buffer full
Important:
KPUSH will only work if the following programm does NOT ....
... do a key buffer flush
... check for Shift/Ctrl/Alt key status
... check the keyboard interrupt directly (as some TSR's do)
KPUSH requires an AT style keybord with BIOS support.
= 21 MAY 1995